package com.project.dao.implement;

import org.apache.ibatis.session.SqlSession;
import com.project.utils.SessionFactoryGen;
import com.project.dao.AccountBaseInfoMapper;
import com.project.bean.AccountBaseInfo;

import java.util.List;

public class AccountBaseInfoImpl  implements AccountBaseInfoMapper{
	@Override
	public List< AccountBaseInfo> GetBaseInfo(String param)
	{
		List< AccountBaseInfo> result= null;
		SqlSession sqlSession = SessionFactoryGen.getSessionFactory().openSession();  
		try
		  {
			AccountBaseInfoMapper mapper =  sqlSession.getMapper(AccountBaseInfoMapper.class);
			  result = mapper.GetBaseInfo(param);
			 // sqlSession.commit();
		  }
		  catch(Exception e)
		  {
			  e.printStackTrace();
		  }
		  finally
		  {
			  sqlSession.close();
		  }
		return result;
	}
}
